<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="../../css/weui.min.css">
    <link rel="stylesheet" href="../../css/weuix.css"/>
    <script src="../../js/jquery.min.js"></script>
    <script src="../../js/vue.js"></script>
    <script src="../../js/axios.min.js"></script>

    <script src="../../js/f2.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
    <script src="https://unpkg.com/vue-chartjs/dist/vue-chartjs.min.js"></script>
    <script src="../../js/app.js"></script>
    <script>
        var uid = getUrlParam('uid');
    </script>
    <style>
        .weui-flex_box{
            margin-top: 20px;
        }
        h3{
            color: #ff851b;
            font-size: 1.5em;
        }
        .placeholder {
            margin: 5px;
            padding: 0 10px;
            background-color: #ebebeb;
            height: 4.3em;
            line-height: 4.3em;
            text-align: center;
            color: #ff851b;
            font-size: 1.5em;
        }

        .placeholder2 {
            margin: 5px;
            padding: 10px 10px;
            background-color: #ebebeb;
            text-align: center;
            font-size: 14px;
        }

        .placeholder3 {
            margin: 5px;
            padding: 10px 10px;
            background-color: #ebebeb;
            text-align: center;
            font-size: 14px;
        }
        .weui-form-preview{
            font-size: 15px;
        }

    </style>
</head>


<body>

<div ontouchstart id="app">
    <div class="weui-flex">
        <div class="weui-flex__item"><div class="placeholder">{{user.verify_name}}-多头报告</div></div>
    </div>
    
    <div class="weui-tab" id="t3" style="height:44px;">
        <div class="weui-navbar">
            <div class="weui-navbar__item" onclick="location.href='report.html?uid=' + uid + '&oid=' + oid + '&mobile=' + mobile + '&moxie=' + moxie">
                综合报告
            </div>
            <div class="weui-navbar__item" onclick="location.href='report_base.html?uid=' + uid + '&oid=' + oid + '&mobile=' + mobile + '&moxie=' + moxie">
                基础信息
            </div>
            <div class="weui-navbar__item tab-blue" >
                多头报告
            </div>
            <div class="weui-navbar__item" onclick="location.href='report_carrier.html?uid=' + uid + '&oid=' + oid + '&mobile=' + mobile + '&moxie=' + moxie">
                运营商报告
            </div>
            <div class="weui-navbar__item " onclick="location.href='report_taobao.html?uid=' + uid + '&oid=' + oid + '&mobile=' + mobile + '&moxie=' + moxie">
                淘宝数据报告
            </div>
            <div class="weui-navbar__item"  onclick="location.href='report_contacts.html?uid=' + uid + '&oid=' + oid + '&mobile=' + mobile + '&moxie=' + moxie">
                手机通讯录
            </div>
            <div class="weui-navbar__item"  onclick="location.href='report_messages.html?uid=' + uid + '&oid=' + oid + '&mobile=' + mobile + '&moxie=' + moxie">
                手机短信
            </div>
        </div>

    </div>

	<div v-if="reportbool == false" style="margin-top:30px;">&nbsp;&nbsp;&nbsp;暂无报告</div>
	
	<div v-if="reportbool">
	
    <div class="weui-flex weui-flex_box">


        <div class="weui-flex__item">
            <div class="placeholder2">
                <h3 class="page-hd-title">
                    申请雷达报告详情
                </h3>
                <p class="page-hd-desc"></p>
                <div class="weui-form-preview">
                    <div class="weui-form-preview__bd">
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">申请准入分</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.apply_score"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">申请准入置信度</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.apply_credibility"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">查询机构数</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.query_org_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">查询消费金融类机构数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.query_finance_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">查询网络贷款类机构数</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.query_cash_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">总查询次数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.query_sum_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">最近查询时间	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.latest_query_time"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近1个月总查询笔数</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.latest_one_month"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近3个月总查询笔数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.latest_three_month"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近6个月总查询笔数</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.apply_report_detail.latest_six_month"></span>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <div class="weui-flex__item">
            <div class="placeholder2">
                <h3 class="page-hd-title">
                    行为雷达报告详情
                </h3>
                <p class="page-hd-desc"></p>
                <div class="weui-form-preview">
                    <div class="weui-form-preview__bd">
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">贷款行为分	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_score"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">贷款行为置信度		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_credibility"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">贷款放款总订单数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">	贷款已结清订单数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_settle_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">贷款逾期订单数（M0+）		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_overdue_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">	贷款机构数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_org_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消费金融类机构数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.consfin_org_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网络贷款类机构数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_cash_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近1个月贷款笔数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.latest_one_month"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近3个月贷款笔数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.latest_three_month"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近6个月贷款笔数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.latest_six_month"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">历史贷款机构成功扣款笔数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.history_suc_fee"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">历史贷款机构失败扣款笔数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.history_fail_fee"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近1个月贷款机构成功扣款笔数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.latest_one_month_suc"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">近1个月贷款机构失败扣款笔数		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.latest_one_month_fail"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">信用贷款时长		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_long_time"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">最近一次贷款时间		</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.behavior_report_detail.loans_latest_time"></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>




    </div>


    <div class="weui-flex weui-flex_box">


        <div class="weui-flex__item">
            <div class="placeholder2">
                <h3 class="page-hd-title">
                    信用现状报告详情
                </h3>
                <p class="page-hd-desc"></p>
                <div class="weui-form-preview">
                    <div class="weui-form-preview__bd">
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网贷建议授信额度</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.loans_credit_limit"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网贷额度置信度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.loans_credibility"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网络贷款类机构数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.loans_org_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网络贷款类产品数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.loans_product_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网络贷款机构最大授信额度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.loans_max_limit"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">网络贷款机构平均授信额度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.loans_avg_limit"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消金建议授信额度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.consfin_credit_limit"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消金额度置信度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.consfin_credibility"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消费金融类机构数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.consfin_org_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消费金融类产品数	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.consfin_product_count"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消费金融类机构最大授信额度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.consfin_max_limit"></span>
                        </div>
                        <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">消费金融类机构平均授信额度	</label>
                            <span class="weui-form-preview__value" v-html="report.result_detail.current_report_detail.consfin_avg_limit"></span>
                        </div>


                    </div>
                </div>
            </div>
        </div>



    </div>

	</div>



</div>

<script>
    var uid = getUrlParam('uid');
    var oid = getUrlParam('oid');
    var mobile = getUrlParam('mobile');
    var moxie = getUrlParam('moxie');
    var app = new Vue({
        el: '#app',
        data: {
            report:'',
			reportbool:false,
			user:{}
        },
        mounted: function () {
            this.taobaoDataRreport();
			this.userinfo();
        },
        methods: {
			userinfo: function () {
				var vm = this;
				axios.post('/api/user/report/userinfo', {
					uid:uid
				}).then(function (response) {
					var obj = response.data;
					if(obj.code == 0) {
						vm.user = obj.data;
					}else{
						
					}
				}).catch(function (response) {
					console.log(response);
				});
			},
            taobaoDataRreport: function () {
                var vm = this;
                axios.post('/api/user/report/radar', {
                    uid:uid,
                    oid:oid
                }).then(function (response) {
                    var obj = response.data;
                    if(obj.code == 0) {
                        vm.report = obj.data;
						vm.reportbool = true;
                    } else {
                        
                    }
                }).catch(function (response) {
                    console.log(response);
                });
            }
        }
    });
</script>

</body>
</html>
